//
//  StockCodeCell.m
//  timelyRain
//
//  Created by Jiafei Wei on 16/8/19.
//  Copyright © 2016年 Jiafei Wei. All rights reserved.
//

#import "StockCodeCell.h"
@interface StockCodeCell()

@end
@implementation StockCodeCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];
}


-(void)setDetail:(StockTickerDetails *)detail{
    NSLog(@"StockTickerDetails");
    _name.text =detail.shortNM;
    _code.text=detail.ticker;
    if (detail.have){
        _image.image =[UIImage imageNamed:@"减少"];
    }else{
         _image.image =[UIImage imageNamed:@"增加"];
    }
}
@end
